import { $http } from './index';

// 查询接口

// 梯内屏点位列表查询
export function queryInnerPointList(data = {}) {
    return $http.post('/saas/point/queryInnerPointList', data);
}

// 梯外屏点位列表查询
export function queryOutPointList(data = {}) {
    return $http.post('/saas/point/queryOutPointList', data);
}

// 查询梯内框架
export function queryInnerBoxList(data = {}) {
    return $http.post('/saas/box/queryInnerBoxList', data);
}

// 梯外框点位列表查询
export function queryOutBoxList(data = {}) {
    return $http.post('/saas/box/queryOutBoxList', data);
}

// 道闸点位列表查询
export function queryBarrierList(data = {}) {
    return $http.post('/saas/gatewayMedia/queryBarrierList', data);
}

// 门禁点位列表查询
export function queryGatewayList(data = {}) {
    return $http.post('/saas/gatewayMedia/queryGatewayList', data);
}

// 导出接口

// 导出梯内屏点位表
export function exportInnerPoint(data = {}) {
    return $http.get('/saas/point/exportInnerPoint', data);
}

// 导出梯外屏点位表
export function exportOutPoint(data = {}) {
    return $http.get('/saas/point/exportOutPoint', data);
}

// 导出梯内框架点位表
export function exportInnerBoxMedia(data = {}) {
    return $http.get('/saas/box/exportInnerBoxMedia', data);
}

// 导出梯外框架点位表
export function exportOutBoxMedia(data = {}) {
    return $http.get('/saas/box/exportOutBoxMedia', data);
}

// 导出道闸点位
export function exportBarrierMedia(data = {}) {
    return $http.get('/saas/gatewayMedia/exportBarrierMedia', data);
}

// 导出门禁点位
export function exportGatewayMedia(data = {}) {
    return $http.get('/saas/gatewayMedia/exportGatewayMedia', data);
}

// 批量导入接口
export function importMedia(data = {}) {
    return $http.post('/saas/point/importMedia', data);
}

// 下载模板
export function downloadTemplate(params: Object) {
    return $http.get('/saas/point/downloadTemplate', { params });
}

// 下载模板
export function reloadRecords(data = {}) {
    return $http.post('/saas/point/reloadRecords', data);
}

// 确认导入
export function sureImport(fileId: Number) {
    return $http.get(`/saas/point/sureImport/${fileId}`);
}
